package com.kaili.tms.service;


import com.kaili.tms.pojo.entity.BaseDict;
import com.kaili.tms.pojo.entity.BaseDriver;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by renzhikun on 19-2-15.
 */
@FeignClient(name="kaili-basic")
public interface BaseFeignService {

    @RequestMapping(value = "/v1/serviceGet/{name}",method = RequestMethod.GET)
    Map dictService(@RequestParam("name") String name);

    @RequestMapping(value = "/v1/baseSiteName/{name}",method = RequestMethod.GET)
    Map querySiteName(@RequestParam("name")String name);

    @RequestMapping(value = "/v1/baseDriverName/{name}",method = RequestMethod.GET)
    Map selectBaseDriverByName(@RequestParam("name") String name);

    @RequestMapping(value = "/v1/baseCar/{name}",method = RequestMethod.GET)
    Map queryBaseCar(@RequestParam("name") String name);

    @RequestMapping(value = "/v1/baseCityName/{name}",method = RequestMethod.GET)
    Map queryCityName(@RequestParam("name")String name);

}
